﻿@{
    ViewBag.Title = "Add";
    Layout = "~/Views/Shared/_QuanLy.cshtml";
}
@using Project.MVC.Model;
@using (Html.BeginForm("Add", "Contact", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
        
    <fieldset>
        <table class="tbl">
            <tr>
                <td colspan="4">
                    <div class="header-title">
                        Thêm thông tin liên lạc</div>
                </td>
            </tr>
            <tr class="button">
                <td colspan="4">
                    <input type="submit" value="Lưu" />
                   @* <input type="button" value="Trở về" onclick="Reset()" />*@
                </td>
            </tr>
            <tr>
                <td class="label">
                    Tên công ty
                </td>
                <td colspan="3">
                    @Html.TextBox(ContactInfo.ListFieldName.Company)
                </td>
            </tr>
            <tr>
                <td class="label">
                    Địa chỉ
                </td>
                <td colspan="3">
                    @Html.TextBox(ContactInfo.ListFieldName.Address)
                </td>
            </tr>
            <tr>
                <td class="label">
                    Điện thoại
                </td>
                <td colspan="3">
                    @Html.TextBox(ContactInfo.ListFieldName.Phone)
                </td>
            </tr>
            <tr>
                <td class="label">
                    Fax
                </td>
                <td colspan="3">
                    @Html.TextBox(ContactInfo.ListFieldName.Fax)
                </td>
            </tr>
            <tr>
                <td class="label">
                    Tên công ty
                </td>
                <td colspan="3">
                    @Html.TextBox(ContactInfo.ListFieldName.Email)
                </td>
            </tr>
            <tr>
                <td class="label">
                    Nick yahoo
                </td>
                <td colspan="3">
                    @Html.TextBox(ContactInfo.ListFieldName.Yahoo)
                </td>
            </tr>
            <tr>
                <td class="label">
                    Nick sky
                </td>
                <td colspan="3">
                    @Html.TextBox(ContactInfo.ListFieldName.Sky)
                </td>
            </tr>
            <tr>
                <td class="label">
                 Sologan
                </td>
                <td colspan="3">
                    @Html.TextArea(ContactInfo.ListFieldName.Sologan, new { @class = "text-editor" })
                </td>
            </tr>
            <tr>
                <td class="label">
                    Giới thiệu
                </td>
                <td colspan="3">
                    @Html.TextArea(ContactInfo.ListFieldName.AboutUs, new { @class = "text-editor" })
                </td>
            </tr>
            <tr class="button">
                <td colspan="4">
                    <input type="submit" value="Lưu" />
                   @* <input type="button" value="Trở về" onclick="Reset()" />*@
                </td>
            </tr>
        </table>
    </fieldset>
}
<script src="@Url.Content("~/Scripts/js/editor.js")" type="text/javascript"></script>
